package com.shuma.auth.model.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author lele
 */
@Data
@TableName("orders")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long purchaseUserId;

    private Long productId;

    private String productCategroryId;

    /**
     * 商品二级分类
     */
    private String productCategrory;

    /**
     * 购买的数量
     */
    private Integer amount;

    /**
     * 0,1,2分别对应纯积分，积分加钱和现金
     */
    private Integer priceType;

    /**
     * 所需积分
     */
    private Integer integral;

    /**
     * 所需现金
     */
    private Integer price;
    /**
     * 订单状态 0 已取消，1未付款，2待发货，3待收货，4已完成，5已退款
     */
    private Integer state;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private LocalDateTime finishTime;


}
